﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _1010PhotoManagement
{
    public class PictBaseClass
    {
        public string PictName { get; set; }    //照片名称
        public DateTime PictDate { get; set; }  //拍照时间
        public string PictIntro { get; set; }   //照片描述
        public string PictPath { get; set; }    //照片的磁盘路径

        public PictBaseClass(string _pn, DateTime _dt, string _pi, string _pp)
        {
            PictName = _pn; PictDate = _dt; PictIntro = _pi; PictPath = _pp;
        }
        //根据照片路径生成Bitmap对象并返回
        public Bitmap GetBitmap()
        {
            Bitmap bt = new Bitmap(PictPath);
            return bt;
        }
    }
}
